class Dog(object):
    def __init__(self, name, color):
        self.name = name
        self.color = color

    def bark(self):
        # self.name = "大黄"
        # self.color = "黄色"
        print(f"一只{self.color}的狗叫{self.name}")


# 创建对象调用

go = Dog("牛马", "骂你几句")
go.bark()

print(go)